﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace HospitalManagement.Web.PatientInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int SysNo=(Convert.ToInt32(strid));
					ShowInfo(SysNo);
				}
			}
		}
		
	private void ShowInfo(int SysNo)
	{
		HospitalManagement.BLL.PatientInfo bll=new HospitalManagement.BLL.PatientInfo();
		HospitalManagement.Model.PatientInfo model=bll.GetModel(SysNo);
		this.lblSysNo.Text=model.SysNo.ToString();
		this.lblFullName.Text=model.FullName;
		this.lblAnonymousName.Text=model.AnonymousName;
		this.lblBirthday.Text=model.Birthday.ToString();
		this.lblBirthPlace.Text=model.BirthPlace;
		this.lblAddress.Text=model.Address;
		this.lblMobile.Text=model.Mobile;
		this.lblPhone.Text=model.Phone;
		this.lblEmail.Text=model.Email;
		this.lblContact.Text=model.Contact;
		this.lblRelation.Text=model.Relation;
		this.lblSurvival.Text=model.Survival;
		this.lblSick.Text=model.Sick;
		this.lblprogressionTime.Text=model.progressionTime;
		this.lblComeInTime.Text=model.ComeInTime.ToString();
        //this.lblDisabled.Text=model.Disabled.ToString();
        //this.lblIndate.Text=model.Indate.ToString();
        //this.lblInUser.Text=model.InUser;
        //this.lblEditDate.Text=model.EditDate.ToString();
        //this.lblEditUser.Text=model.EditUser;

	}


    }
}
